import jieba
from wordcloud import WordCloud

with open('demo.txt', 'r', encoding='utf-8') as f:
    text = f.read()
lst = jieba.cut(text)
txt = ''.join(lst)

stopword = {"流畅的操作系统", "无缝连接", "不支持"}
wordcloud = WordCloud(background_color='white', stopwords=stopword, width=800, height=600)

wordcloud.generate(txt)
wordcloud.to_file('wordcloud.png')
